const files = require.context('./',false,/\.js$/);

let api = files.keys().filter(item => !item.includes('index')).reduce((prev,key) => {
    return {
        ...prev,
        ...files(key).default
    }
},{})

export default api